package com.pmsystem.dao;

import com.pmsystem.pojo.Root;
import com.pmsystem.pojo.RootExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;


public interface RootMapper {
    long countByExample(RootExample example);

    int deleteByExample(RootExample example);

    int deleteByPrimaryKey(Short rootid);

    int insert(Root record);

    int insertSelective(Root record);

    List<Root> selectByExample(RootExample example);

    Root selectByPrimaryKey(Short rootid);

    int updateByExampleSelective(@Param("record") Root record, @Param("example") RootExample example);

    int updateByExample(@Param("record") Root record, @Param("example") RootExample example);

    int updateByPrimaryKeySelective(Root record);

    int updateByPrimaryKey(Root record);

    /**
     * 
     * <p>Title: login</p >  
     * <p>Description: 超级管理员登陆</p >  
     * @author 泽强
     * @param username
     * @param password
     * @return
     */
	Root login(String username, String password);

	void initDB(String tableName);
}